package bug;

import bug.persistent.Bug;
import bug.persistent.Issue;
import bug.persistent.Task;
import bug.persistent.User;

import java.util.List;

/**
 * User: ion
 * Date: Aug 30, 2008 - 10:54:08 AM
 */

public class Main4 extends BaseMain {

    public static void main(String[] args) {
        new Main4().run();
    }

    public void run() {

        beginSession();

        User u = userDao.getById(1);

        List<Bug> bugs = userDao.loadBugs(u.getId());
        for (Bug i : bugs) {
            System.out.println(i.getTitle());
        }

//        List<User> users = userDao.getAll();
//        for (User u: users) {
/*
            for (Issue i : u.getIssues()) {
                System.out.println(i.getTitle());
            }
*/
//        }

        endSession();
    }
}